package com.zoe.onelink.annotation.web.jackson.encryptor;

import com.zoe.onelink.annotation.data.encryptor.IEncryptor;
import com.zoe.onelink.annotation.data.encryptor.enumeration.Algorithm;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * <p>标题: 解密字段</p>
 * <p>描述: </p>
 * <p>版权: Copyright (c) 2021</p>
 * <p>公司: 智业软件股份有限公司</p>
 *
 * @version: 1.0
 * @author: ruansheng
 * @date: 2021-11-11
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface DecryptParam {

    /**
     * 加密算法,默认使用SM2国密算法
     */
    Algorithm algorithm();

    /**
     * 手动指定加密器
     */
    Class<? extends IEncryptor> customEncryptor() default IEncryptor.class;

}
